const mongoose = require('mongoose')
const Schame = mongoose.Schema
const Mongo = require('../Lib/mongoose')
const { plugin } = require('./plugin/index')
mongoose.plugin(plugin) // 全局插件

class Model {
    constructor() {
        Mongo.connect
        this.mongoose = mongoose
        this.Schame = Schame
    }
}

module.exports = Model
